package com.example.springdemo.ioc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zhangding
 * @date 2022年3月3日09:17:39
 */
@Component
public class HaveParam {


    @Autowired(required = false)
    Param param;


    String cnu;

//    @Autowired(required = false)
//    public HaveParam(String param){
//
//    }


    public void setParam(String param){

    }

    public void doSome(){
        System.out.println(param.getName());
    }

}
